速報APP / 工具 / Haptic Test: check device's vibratio

Haptic Test: check device's vibratio

價格:免費

更新日期:2019-02-14

檔案大小:2.4M

目前版本:1.1.0

版本需求:Android 4.0.3 以上版本

官方網站:http://hssoftvn.com

Email:huynhhoangson@gmail.com

聯絡地址:31 Ngo Be, Ward 13, Tan Binh District, HCMC, Vietnam

Haptic Test: check device's vibration ability(圖1)-速報App

Haptic Test provides the ability to:

1. Test vibration/haptic ability for your device.

2. Support testing haptic feedback with amplitude control if device is supported with it.

3. Easily for programmers to consider using the appropriate haptic type for their projects.

So far, there are three types of vibration effect that an android device can support.

1. ONE SHOT vibration: just vibrate during a given time in milisecond.

2. TIMINGS PATTERN

It is the array of pairs of {silent, vibration} positive values. For no delay at start, you should start the pattern with 0.

For example: 0, 1000,500,1000, 300, 100

This pattern will start vibration immediately, lasting 1000 mili-seconds,

Haptic Test: check device's vibration ability(圖2)-速報App

then stop/silent in next 500ms, then continue vibration in 1000ms,

then stop/silent in next 300ms, and continue vibration in 100ms.

3. VIBRATION USING AMPLITUDE CONTROL

Amplitude value defines how strong the vibration will be, and now just supported on some devices. It must be in range of 0 and 255 to work. Any values out of this range will be clipped.

The vibration effect is caused by the combination of Timing and Amplitude values.

Each pair will vibrate with an specified amplitude value during a given time in mili-seconds. Please make sure the total elements of Timings and Amplitude be the same.

For example:

Timings: 10, 100, 50, 100, 300, 100

Amplitude: 150, 10, 50, 100, 255, 10

This will vibrate 6 times continuously with different time and amplitude.

Please feel free to contact me for the advice of using vibration/haptic feedback in your projects effectively.